
reset_path_group -all
resetPathGroupOptions

# group path
group_path -name IN2REG -from [all_inputs -no_clocks] -to [all_registers]
group_path -name REG2OUT -from [all_registers] -to [all_outputs]
group_path -name IN2OUT -from [all_inputs -no_clocks] -to [all_outputs]

set ffs [all_registers]
#set ffs   [filter_collection [all_registers] "!is_clock_gating_check"]
#set icgs  [filter_collection [all_registers] "is_clock_gating_check"

set macros   [filter_collection [all_registers] "is_memory_cell"]


group_path -name REG2REG -from $ffs -to $ffs
group_path -name MEM2REG -from $macros -to $ffs
group_path -name REG2MEM -from $ffs -to $macros
group_path -name MEM2MEM -from $macros -to $macros
#group_path -name REG2ICG -from $ffs -to $icgs
#group_path -name MEM2ICG -from $macros -to $icgs

get_path_groups *


setPathGroupOptions IN2REG -effortLevel high -weight 1
setPathGroupOptions REG2OUT -effortLevel high -weight 5
setPathGroupOptions IN2OUT -effortLevel high

setPathGroupOptions REG2REG -effortLevel high -weight 10
setPathGroupOptions MEM2REG -effortLevel high
setPathGroupOptions REG2MEM -effortLevel high
setPathGroupOptions MEM2MEM -effortLevel high
#setPathGroupOptions MEM2ICG -effortLevel high
#setPathGroupOptions REG2ICG -effortLevel high





